﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Common;

namespace WebHost
{
    public partial class PPTCheckRequest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            String content = Util.returnResponsebody(Request.InputStream);
            if (content == null || content.Trim().Length == 0)
                return;

            CGlobalContext context = Application[CGlobalContext.APP_DATA_KEY] as CGlobalContext;
            if (context != null)
            {
                string response = context.CheckRequest(content);
                Response.Write(response);
                Logger.Write("Response:[" + Request.Url + "]:" + response);
            }
            else
            {
                Logger.Write("Response:[" + Request.Url + "]:null");
            }
        }
    }
}